﻿@using System.Text
@using OA.Model
@using OA.AspNetCore.Html
@using OA.Core.Model
@using OA.Core.Helper
@{
    Layout = "~/Areas/Member/Views/Shared/_Layout.cshtml";
    TestPaper infoVote = ViewBag.TestPaper;
}
<script type="text/javascript" src="@ViewBag.OssUrl/front/layui/layui-xtree/layui-xtree.js"></script>
<div class="layui-form layui-tab-content" id="LAY_ucm" style="padding:0px">
    @using (Html.BeginForm(FormMethod.Post, htmlAttributes: new { @class = "layui-form", id = "myForm" }))
    {
        <div class="layui-form-item">
            <label class="layui-form-label" for="Title">组织图</label>
            <div class="layui-input-block">
                <div id="xtree1" class="xtree_contianer"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label" for="Title"></label>
            <div class="layui-input-block">
                <input type="hidden" name="id" value="@infoVote.ID" />
                <input type="submit" value="提 交" class="layui-btn mySubmit" />
            </div>
        </div>
    }
</div>
<script type="text/javascript">

    layui.use(['form', 'layedit', 'element', 'layer'], function () {
        form = layui.form;
        layer = layui.layer;
        element = layui.element;
        var xtree1 = new layuiXtree({
            elem: 'xtree1'
            ,name:'employees'
            , form: form
            , data: '/Management/TestPaper/GetEmployeeTree/@infoVote.ID'
        });
    });
</script>